source = '身份证码值对照表.txt'
d = {}

with open(source, encoding='utf8', mode='r') as f:
    for _ in f.readlines():
        _ = _.replace('\n', '')
        a =_.split(',')
        d[a[0]] = a[1]

while True:
    num = input('身份证前六位:')
    print(d[num])